-
-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4481 Print Individual Donation Receipts #4484
4481 Print Individual Donation Receipts #4484
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works well from a functional pov -- just one thing I'd like to see different functionally . Can we tweak it to include $0.00 for the Money raised if there wasn't any money raised? Why? Having a value there means it can't be as easily altered to show a false value.
I'd also like to see tests confirming that the print buttons show up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from a functional pov. Over to @dorner for technical input.
Latest changes pushed. |
All things being tested for now have hardcoded values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have preferred hardcoding the things we were testing against as well (e.g. expect(pdf_test.page(1).text).to include('Site X')
. But I'm not going to hold up the PR because of that.
Thanks very much! |
@mdphillips375: Your PR |
Resolves #4481
Description
Added buttons to donation list rows and donation view page to print PDF receipt of individual donation. PDF is modification of existing distribution receipt.
Type of change
How Has This Been Tested?
Added and modified sample donation records to provide a variety of types of donations: sources, various states of completeness of contact info, line items, money values.
For some reason rSpec is currently getting hung on my system, so these tests were not run. Only changes made to existing code was adding 2 routes, 2 buttons, and one controller method.
Screenshots
Hiding value columns:
Not hiding value columns: